<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" id="bt" value="点我" onclick="test()"/><br/>

<input type="button" id="bt2" value="点我" onclick="javascript:alert('点你妹啊！');"/>

<script>
    function test(){
        alert('点你妹啊！');
    }
</script>
</body>
</html>